<?php

class OutputHelper {
	
	protected $_currentValue;
	
	public function value($value) {
		$this->_currentValue = $value;
		return $this;
	}
	
	public function out() {
		echo $this->_currentValue;
	}
	
	public function getCurrentValue() {
		return $this->_currentValue;
	}
	
	public function upper() {
		$this->_currentValue = strtoupper($this->_currentValue);
		return $this;
	}
	
	public function lower() {
		$this->_currentValue = strtolower($this->_currentValue);
		return $this;
	}
	
	public function cut($length, $suffix = '') {
		$this->_currentValue = CUtilHelper::string()->cut($this->_currentValue, $length, $suffix);
		return $this;
	}
	
}

?>